#!/bin/bash

# 关闭防火墙
systemctl stop firewalld
systemctl disable firewalld

# 关闭selinux
sed -i 's/enforcing/disabled/' /etc/selinux/config  # 永久
setenforce 0  # 临时

# 关闭swap
swapoff -a  # 临时
sed -ri 's/.*swap.*/#&/' /etc/fstab    # 永久


ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
yum install wget net-tools telnet tree nmap sysstat lrzsz dos2unix bind-utils nfs-utils -y